<template>
  <div class="not_auto">
    <div v-for="(it, ind) in order_delivery" :key="ind" class="big_box">
      <div>
        <!--  -->
        <span class="mark" v-if="ind != 0">{{ it.create_time }}</span>
      </div>
      <div class="card">
        <ul>
          <li v-for="(item, index) in it.card_content" :key="index">
            <div class="tow" v-if="ind !== order_delivery.length - 1"><img src="@/assets/images/pubilc/tow.png" alt=""></div>
            <!-- <div class="numCode" :class="(index + 1) > 99 ? 'font16' : ''">{{ (index + 1) < 10 ? '0' + (index + 1) : (index + 1 )}}</div> -->
            <div class="numCode" :class="item.num > 99 ? 'font16' : ''">{{ item.num }}</div>
            <div class="top num">
              <h3><img src="@/assets/images/pubilc/cardNum.png" alt="">{{ it.card_no_name ? it.card_no_name : '卡号' }}</h3>
              <p>{{ item.no ? item.no : '无' }}</p>
            </div>
            <div class="top">
              <h3><img src="@/assets/images/pubilc/cardMsg.png" alt="">{{ it.card_pwd_name ? it.card_pwd_name : '卡密'}}</h3>
              <p>{{ item.pwd ? item.pwd : '无' }}</p>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["order_delivery"],
  data () {
    return {
      a: 1
    }
  }
};
</script>

<style lang="scss" scoped>
.not_auto {
  width: 100%;
  background: #ffffff;
  padding: 0px 0 25px 0;
  text-align: center;
  .span {
    color: #ffffff;
    font-size: 10px;
    background: #ff4f11;
    padding: 5px 7px 5px 10px;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    margin-right: -8px;
    position: relative;
    z-index: 1;
  }
  .mark {
    font-size: 11px;
    // background: #e9e9e9;
    padding: 5px 10px;
    border-radius: 18px;
    letter-spacing: 0.5px;
    color: #999999;
  }
  .big_box {
    padding-top: 5px;
  }
  .card {
    padding: 0 12px;
    ul {
      li {
        background: #ffffff;
        text-align: left;
        padding: 20px 16px 20px;
        border-radius: 4px;
        margin-top: 18px;
        position: relative;
        box-shadow: 0 0 12px 0px rgba($color: #D4D4D4, $alpha: 0.23);
        .tow {
          position: absolute;
          width: 34px;
          height: 34px;
          left: 0;
          top: 0;
        }
        .numCode {
          position: absolute;
          right: 10px;
          top: 0;
          width: 37px;
          height: 37px;
          background: url('../../assets/images/pubilc/code.png') no-repeat;
          background-size: 100% 100%;
          text-align: center;
          line-height: 18px;
          font-size: 23px;
          font-weight: 800;
          color: #D4D4D4;
          padding-top: 6px;
        }
        .font16 {
          font-size: 16px!important;
        }
        .top {
          position: relative;
          h3 {
            font-size: 13px;
            font-weight: 600;
            margin-top: 4px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            img {
              width: 16px;
              height: 16px;
              margin-right: 8px;
            }
          }
          p {
            font-size: 12px;
            color: #999999;
          }
        }
        .num {
          padding-bottom: 10px;
          margin-bottom: 16px;
          border-bottom: 0.5px solid rgba(243,243,243,1);
        }
        // .top:nth-child(1) ::after {
        //   // content: '';
        //   // position: absolute;
        //   // bottom: 0;
        //   // width: 328px;

        // }
      }
      li:nth-child(1) {
        margin-top: 0;
      }
    }
  }
}
</style>
